Api.WriteOutputByte 方法

将一个位元组写入实体或模拟 I/O 模组的输出。

命名空间IntervalZero.KINGSTAR.Local.Api

组合: IntervalZero.KINGSTAR.Local.Api (于 IntervalZero.KINGSTAR.Local.dll) 版本:4.4.0.0

语法

C#VB
public KsError WriteOutputByte(
       int Index,
       int ByteOffset,
       byte Value
)
Public Function WriteOutputByte(
       Index As Integer,
       ByteOffset As Integer,
       Value As Byte
) As KsError

参数

Index

型别:int

I/O 模组的索引。索引以 0 为起始;别名将影响此参数。

 

ByteOffset

型别:int

指定位元组偏移量到一个位置,以写入位元组值。最大偏移量由 SlaveStatus 类别中的 OutputLength决定。

 

Value

型别:byte

欲写入的位元组值。

回传值

型别:KsError

方法的回传代码。

备注

WriteOutputByte 仅能在连结建立并开始启用时才能呼叫。

可用的 EtherCAT 状态

ecatOP

范例

C#
N/A

参见

Api 类别

IntervalZero.KINGSTAR.Local.Api 命名空间